#include "app_buffer.h"
#include "log/log.h"
int main(int argc, char const *argv[])
{
    Buffer *buffer=app_buffer_init(12);
    app_buffer_write(buffer,"abcd",4);
    app_buffer_write(buffer,"efghi",5);
    char buf1[4];
    app_buffer_read(buffer,buf1,4);
    log_debug("buf1:%s",buf1);
    app_buffer_write(buffer,"jklmno",6);
    char buf2[5];
    app_buffer_read(buffer,buf2,5);
    log_debug("buf2:%s",buf2);
    char buf3[6];
    app_buffer_read(buffer,buf3,6);
    log_debug("buf3:%s",buf3);
    app_buffer_free(buffer);
    return 0;
}
